/**
 * 用户模块的路由
 */
export const userRouter = {
	path: '/user',
	name: 'user',
	component: () => import('@/views/User/User'),
	meta: {
		requireAuth: true,
		// 需要缓存
		keepAlive: true,
		tab: {
			// 缓存的标签名字
			name: '用户',
			// 组件名称,是组件里面name:'xxx'中的name值
			componentName: 'User',
			routerName: 'users'
		}
	}
}

export const permissionRouter = {
	path: '/role',
	name: 'role',
	component: () => import('@/views/User/Role'),
	meta: {
		requireAuth: true,
		// 需要缓存
		keepAlive: true,
		tab: {
			// 缓存的标签名字
			name: '角色',
			// 组件名称,是组件里面name:'xxx'中的name值
			componentName: 'role',
			routerName: 'role'
		}
	}
}
